<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        var obj1 = {
            name: "张三",
            age: 18
        }
        var obj2 = obj1;
        console.log(obj2)
    </script>
</body>
</html>